package wwy.Common.orgEntity;

import jakarta.persistence.Column;
import jakarta.persistence.MappedSuperclass;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
@MappedSuperclass
public abstract class LogicEntity extends BaseEntity{
    @Column(insertable = false)
    protected Date deletedTime;

    @Column(insertable = false,
            nullable = false,
            columnDefinition="INT default 0")
    protected Integer isDeleted = 0;
}